# -*- coding: utf-8 -*-
"""
Spyder Editor

This is a temporary script file.
"""
# (1)
x = 10
y = 20
z = x + y
print(z)
# (2)
a = 3.14
b = 2.718
c = a * b
print(c)
# (3)
name = "xuwenxuan"
first_char = (name[0])
sub_str = (name[1:3])
upper_name = name.upper()
print(first_char)
print(sub_str)
print(upper_name)
# (4)
numbers = []
numbers = [1,2,3,4,5,6,7,8,9,10]
numbers[4] = 100
numbers.remove(numbers[1])
print(numbers)
# (5)
colors = ("Red","Green","Blue")
colors = list(colors)
a_1 = "Yellow"
colors.append(a_1)
colors = tuple(colors)